package com.ssy.lingxi.member.merchant.model.bo;

import java.io.Serializable;
import java.util.Objects;

/**
 * @author 万宁
 * @version 2.0.0
 * @date 2021-04-15
 */
public class ChannelAuthBO implements Serializable {
    private static final long serialVersionUID = 5752229951629814985L;

    /**
     * 会员关系Id
     */
    private Long relationId;

    /**
     * 下属渠道会员Id
     */
    private Long memberId;

    /**
     * 下属渠道会员角色Id
     */
    private Long roleId;

    public Long getRelationId() {
        return relationId;
    }

    public void setRelationId(Long relationId) {
        this.relationId = relationId;
    }

    public Long getMemberId() {
        return memberId;
    }

    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }

    public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        ChannelAuthBO that = (ChannelAuthBO) o;
        return relationId.equals(that.relationId) &&
                memberId.equals(that.memberId) &&
                roleId.equals(that.roleId);
    }

    @Override
    public int hashCode() {
        return Objects.hash(relationId, memberId, roleId);
    }
}
